/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.adp.violate.model.Employee;

import za.ac.cput.adp.violate.model.Date.Date;

/**
 *
 * @author Abduraghmaan
 */
public class Employee {
    private String firstName;
    private String lastName;
    private String position;
    private Date hireDate;

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
    
    
    public Employee(String first, String last)
    {
         firstName = first;
         lastName = last;   
    }
    
     public void setHireDate(Date hire)
     {
        hireDate = hire;
     }
    
    public int checkMonth(int m)
    {
        if(m > 0 && m <=12)
            return m;
         else
            return 1;
    }
    
    @Override
    public String toString()
    {
        return String.format("%s,%s Hired: %s",firstName,lastName,hireDate);
    }
    
    
    
}
